package cn.wolfcode.crm.domain;

import lombok.*;

import java.util.ArrayList;
import java.util.List;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Employee {
    //渣渣
    //zz
    public String test(){
        return "你好";
    }
    private Long id;

    private String name;

    private String password;

    private String email;

    private Integer age;

    private boolean admin;

    private boolean status;

    //关联属性
    private List<Role> roles = new ArrayList<>();

    public Employee(String name, String email, Integer age) {
        this.name = name;
        this.email = email;
        this.age = age;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }

    public Department getDept() {
        return dept;
    }

    public void setDept(Department dept) {
        this.dept = dept;
    }

    //private Long deptId;
    private Department dept;



}